<template>
    <div class="index">
        <!-- 我是首页 -->
        <router-view></router-view>
        <nav>
      <router-link to="/index/homepage">首页</router-link> 
      <router-link to="/index/boom">爆爆团</router-link> 
      <router-link to="/index/order">订单</router-link> 
      <router-link to="/index/mine">我的</router-link>
      <!-- <div this.$router.push() ></div> -->

       <!-- 跳路由传参方式一：动态路由，刷新页面不会丢失 -->
      <!-- <router-link :to="'/detail/'+ 888" >gjhgvj</router-link> -->
      <!-- 跳转路由传参方式二：path + query,刷新页面会丢失 -->
       <!-- <router-link :to="{path:'/detail',query:{name:888}}" >gjhgvj</router-link> -->
       <!-- 跳转路由传参方式3 name+params 刷新页面会丢失-->
        <!-- <router-link :to="{name:'/detail',params:{name:888}}" >gjhgvj</router-link> -->
    </nav>
    </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
    #app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  // text-align: center;
  color: #d3d6d8;
}

nav {
  background-color: rgb(213, 212, 212);
  position: fixed;
  bottom: 0;
  padding: 15px 0;
  display: flex;
  width: 100%;
  justify-content: center;

  a {
    font-weight: bold;
    color: #2c3e50;
    display: inline-block;
    flex-grow: 1;
    text-align: center;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>